* {
    padding: 0;
    margin: 0;

}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

html::after {
    content: "By Ghost.";
    position: absolute;
    bottom: 10px;
    color: cyan;
    right: 10px;
    z-index: 15;
}


.box {
    position: relative;
    width: 600px;
    height: 275px;
    background: url("../images/ninja.jpg");
    background-size: contain;
    overflow: hidden;

}

.box::before {
    content: "火影忍者";
    position: absolute;
    top: -275px;
    width: 600px;
    height: 275px;
    line-height: 275px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(0, 0, 0, .2);

}

.box:hover::before {
    top: 0;
    animation: down 1s ease-in-out forwards;
}

@keyframes down {
    0% {
        top: -275px;
    }

    40% {
        top: 0;
    }

    50% {
        top: -60px;
    }

    60% {
        top: 0;
    }

    70% {
        top: -20px;
    }

    80% {
        top: 0px;
    }

    90% {
        top: -10px;
    }

    100% {
        top: 0px;
    }
}